﻿<Window
		xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
		xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
		xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
		mc:Ignorable="d" x:Class="BaMusaSoft.RPS.View.AddCustomerWindow"
		Title="AddCustomerWindow" Height="293" Width="480"
		FlowDirection="RightToLeft" WindowStartupLocation="CenterOwner" ResizeMode="NoResize" ShowInTaskbar="False" WindowStyle="ToolWindow" FontFamily="Simplified Arabic" FontSize="16">
	<Grid>
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="Auto"/>
			<ColumnDefinition Width="*"/>
		</Grid.ColumnDefinitions>
		<Grid.RowDefinitions>
			<RowDefinition Height="Auto"/>
			<RowDefinition Height="*"/>
			<RowDefinition Height="Auto"/>
		</Grid.RowDefinitions>
		<TextBlock Grid.Row="0" Grid.Column="0" Text="إسم المستأجر" Margin="8,10,3,8" />
		<TextBox Grid.Column="1" x:Name="txtCustomerName" Text="{Binding Path=CustomerName, UpdateSourceTrigger=PropertyChanged}" TabIndex="0" Margin="0,10,8,8" />
		<ListBox Margin="0,8,8,8" Grid.Column="1" Grid.Row="1" TabIndex="1"
				 ItemsSource="{Binding Customers}" IsSynchronizedWithCurrentItem="True"
				 SelectionChanged="ItemSelectionChanged" >
			<ListBox.ItemTemplate>
				<DataTemplate>
					<StackPanel>
						<TextBlock Text="{Binding Name}"/>
					</StackPanel>
				</DataTemplate>
			</ListBox.ItemTemplate>
		</ListBox>
		<StackPanel Grid.Column="0" Grid.Row="2" Grid.ColumnSpan="2"  Background="#FFF0F0F0" Margin="0,0,0,0">
			<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,0,8,0">
			<Button Content="إضافة" TabIndex="3" Click="OkButtonClick" Width="80" Margin="0,8" Height="30" IsDefault="True" />	
			<Button Content="إلغاء" HorizontalAlignment="Left"  d:LayoutOverrides="VerticalAlignment" Width="80" TabIndex="2" Click="CancelButtonClick" Margin="5,8" Height="30" IsCancel="True" />
			</StackPanel>
		</StackPanel>
		
	</Grid>
</Window>
